﻿using System;
using Jayden.Dll.Web.Enums;

namespace Jayden.Dll.Web.Json
{
	public class JsonBoolean : JsonValue
	{
		public Boolean Value;
		public JsonBoolean() { }
		public JsonBoolean(bool value) { Value = value; }
		public string ToJson(RenderMode mode, int level) { return Value ? JsonHelper.True : JsonHelper.False; }
		public override string ToString() { return ToJson(RenderMode.Debug, 0); }
	}
}
